/*
** my_fonc.c for push_swap in /home/nadali_t//local/Projets/CprgElem/pushswap
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Thu Jan  5 15:01:44 2012 thomas nadalie
** Last update Fri Jan  6 15:39:50 2012 thomas nadalie
*/

#include	<push_swap.h>
#include	<stdlib.h>

int	*sa(int *l_a, int ac)
{
  if (ac == 1 || ac == 0)
    exit(0);
  else
    my_swap(&l_a[0], &l_a[1]);
  return (0);
}

int	*sb(int *l_b, int ac)
{
  if (ac == 1 || ac == 0)
    exit(0);
  else
    my_swap(&l_b[0], &l_b[1]);
  return (0);
}

int	*ss(int *l_a, int *l_b, int ac)
{
  if (ac == 1 || ac == 0)
    exit(0);
  else
    {
      my_swap(&l_a[0], &l_a[1]);
      my_swap(&l_b[0], &l_b[1]);
    }
  return (0);
}

int	*pa(int *l_a, int *l_b, int ac)
{
  int	i;
  int	j;
  
  if (l_b == NULL)
    exit(0);
  my_add_elem_in_tab(l_a[0], ac, l_b[0]);
  my_del_elem_in_tab(l_a, l_b, ac);
}
